package com.onlyyou.feignserver.controller;

import com.onlyyou.feignserver.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: 小野
 * @Date: 2020/1/14 15:08
 */
@RestController
@RequestMapping("/")
public class TestController {

    @Autowired
    private UserService userService;

    @GetMapping("/test")
    public String test() {
        return userService.test();
    }

    @GetMapping("/toLogin")
    public String toLogin() {
        return userService.toLogin();
    }
}
